<?php

$username = $_POST['username'];

if($username=='xuebingsi'){

	$info =['code'=>1,'msg'=>'用户已经存在'];
	exit(json_encode($info));

}else{
	$info =['code'=>0,'msg'=>'用户名可以用'];

	exit(json_encode($info));
}